/*
 *    Copyright (c) 2018-2025, boss All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the boss developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: boss
 */

package com.hopes.bizz.close.hazard.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.hopes.bizz.close.common.constant.enums.ParkCloseSysDictEnum;
import com.hopes.boss.admin.api.resolver.DictResolver;
import com.hopes.boss.common.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * 危险品车辆报警
 *
 * @author pig
 * @date 2023-10-31 16:03:39
 */
@Data
@TableName(value = "closed_alarm_hazard_car", excludeProperty = "tenantId")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "危险品车辆报警")
public class ClosedAlarmHazardCarEntity extends BaseEntity {

    private static final long serialVersionUID = 1L;


	/**
	* 标识
	*/
    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description="标识")
    private Long id;

	/**
	* 车牌号
	*/
    @Schema(description="车牌号")
    private String licencePlateNumber;

	/**
	* 危险品车辆
	*/
    @Schema(description="危险品车辆")
    private Long hazardCarId;

	/**
	* 报警路段
	*/
    @Schema(description="报警路段")
    private Long roadId;

	/**
	* 报警位置
	*/
    @Schema(description="报警位置")
    private String alarmPosition;

	/**
	* 报警时间
	*/
    @Schema(description="报警时间")
    private Date alarmTime;

	/**
	* 报警类型
	*/
    @Schema(description="报警类型")
    private Integer alarmType;

	/**
	* 是否通知
	*/
    @Schema(description="是否通知")
    private String isNotice;

	/**
	* 报警状态
	*/
    @Schema(description="报警状态")
    private String alarmStatus;

	/**
	* 报警内容
	*/
    @Schema(description="报警内容")
    private String alarmContent;

	/**
	* 报警图片
	*/
    @Schema(description="报警图片")
    private String imgUrl;

	/**
	 * 处理时间
	 */
	@Schema(description="处理时间")
	private Date handleTime;

	/**
	* 处理状态
	*/
    @Schema(description="处理状态")
    private String handleStatus;

	/**
	* 处理人
	*/
    @Schema(description="处理人")
    private String handlePerson;

	/**
	* 处理结果
	*/
    @Schema(description="处理结果")
    private String handleResult;

	/**
	 * 备注说明
	 */
	@Schema(description="备注说明")
    private String remark;


    public String getAlarmTypeStr() {
    	return DictResolver.getItemLabelByValue(ParkCloseSysDictEnum.close_hazard_alarm_type, this.getAlarmType());
	}

	public String getAlarmStatusStr() {
    	return DictResolver.getItemLabelByValue(ParkCloseSysDictEnum.close_hazard_alarm_status, this.getAlarmStatus());
	}


    public String getHandleStatusStr() {
    	return DictResolver.getItemLabelByValue(ParkCloseSysDictEnum.close_hazard_alarm_handle_status, this.getHandleStatus());
	}

	public String getHandleResultStr() {
    	return DictResolver.getItemLabelByValue(ParkCloseSysDictEnum.close_hazard_alarm_handle_result, this.getHandleResult());
	}


}
